home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol F-12
/
(Vol F-12) Jun 02 2012.iso
/
Screensaver
/
screensaver_installer.exe
/
____swmx
/
scripts
/
frame_1
/
DoAction_11.as
< prev
next >
Wrap
Text File
|
2004-10-21
|
5KB
|
188 lines
_global.ScreenweaverColors = function()
{
this.COLOR_ACTIVEBORDER = 10;
this.COLOR_ACTIVECAPTION = 2;
this.COLOR_APPWORKSPACE = 12;
this.COLOR_BACKGROUND = 1;
this.COLOR_BTNFACE = 15;
this.COLOR_BTNHIGHLIGHT = 20;
this.COLOR_BTNHILIGHT = this.COLOR_BTNHIGHLIGHT;
this.COLOR_BTNSHADOW = 16;
this.COLOR_BTNTEXT = 18;
this.COLOR_CAPTIONTEXT = 9;
this.COLOR_DESKTOP = this.COLOR_BACKGROUND;
this.COLOR_GRADIENTACTIVECAPTION = 27;
this.COLOR_GRADIENTINACTIVECAPTION = 28;
this.COLOR_GRAYTEXT = 17;
this.COLOR_HIGHLIGHT = 13;
this.COLOR_HIGHLIGHTTEXT = 14;
this.COLOR_HOTLIGHT = 26;
this.COLOR_INACTIVEBORDER = 11;
this.COLOR_INACTIVECAPTION = 3;
this.COLOR_INACTIVECAPTIONTEXT = 19;
this.COLOR_INFOBK = 24;
this.COLOR_INFOTEXT = 23;
this.COLOR_MENU = 4;
this.COLOR_MENUTEXT = 7;
this.COLOR_SCROLLBAR = 0;
this.COLOR_WINDOW = 5;
this.COLOR_WINDOWFRAME = 6;
this.COLOR_WINDOWTEXT = 8;
this.COLOR_3DDKSHADOW = 21;
this.COLOR_3DFACE = this.COLOR_BTNFACE;
this.COLOR_3DHIGHLIGHT = this.COLOR_BTNHIGHLIGHT;
this.COLOR_3DHILIGHT = this.COLOR_BTNHIGHLIGHT;
this.COLOR_3DLIGHT = 22;
this.COLOR_3DSHADOW = this.COLOR_BTNSHADOW;
};
ScreenweaverColors.prototype.__resolve = function(method)
{
var lcmethod = method.toUpperCase();
this.retVal = undefined;
swC = swSystem.Colors;
if(lcmethod eq "GETACTIVEBORDER")
{
this.retVal = swC.getSysColor(swC.COLOR_ACTIVEBORDER);
}
else if(lcmethod eq "GETACTIVECAPTION")
{
this.retVal = swC.getSysColor(swC.COLOR_ACTIVECAPTION);
}
else if(lcmethod eq "GETAPPWORKSPACE")
{
this.retVal = swC.getSysColor(swC.COLOR_APPWORKSPACE);
}
else if(lcmethod eq "GETBACKGROUND")
{
this.retVal = swC.getSysColor(swC.COLOR_BACKGROUND);
}
else if(lcmethod eq "GETBTNFACE")
{
this.retVal = swC.getSysColor(swC.COLOR_BTNFACE);
}
else if(lcmethod eq "GETBTNHIGHLIGHT")
{
this.retVal = swC.getSysColor(swC.COLOR_BTNHIGHLIGHT);
}
else if(lcmethod eq "GETBTNSHADOW")
{
this.retVal = swC.getSysColor(swC.COLOR_BTNSHADOW);
}
else if(lcmethod eq "GETBTNTEXT")
{
this.retVal = swC.getSysColor(swC.COLOR_BTNTEXT);
}
else if(lcmethod eq "GETCAPTIONTEXT")
{
this.retVal = swC.getSysColor(swC.COLOR_CAPTIONTEXT);
}
else if(lcmethod eq "GETDESKTOP")
{
this.retVal = swC.getSysColor(swC.COLOR_DESKTOP);
}
else if(lcmethod eq "GETGRADIENTACTIVECAPTION")
{
this.retVal = swC.getSysColor(swC.COLOR_GRADIENTACTIVECAPTION);
}
else if(lcmethod eq "GETGRADIENTINACTIVECAPTION")
{
this.retVal = swC.getSysColor(swC.COLOR_GRADIENTINACTIVECAPTION);
}
else if(lcmethod eq "GETGRAYTEXT")
{
this.retVal = swC.getSysColor(swC.COLOR_GRAYTEXT);
}
else if(lcmethod eq "GETHIGHLIGHT")
{
this.retVal = swC.getSysColor(swC.COLOR_HIGHLIGHT);
}
else if(lcmethod eq "GETHIGHLIGHTTEXT")
{
this.retVal = swC.getSysColor(swC.COLOR_HIGHLIGHTTEXT);
}
else if(lcmethod eq "GETHOTLIGHT")
{
this.retVal = swC.getSysColor(swC.COLOR_HOTLIGHT);
}
else if(lcmethod eq "GETINACTIVEBORDER")
{
this.retVal = swC.getSysColor(swC.COLOR_INACTIVEBORDER);
}
else if(lcmethod eq "GETINACTIVECAPTION")
{
this.retVal = swC.getSysColor(swC.COLOR_INACTIVECAPTION);
}
else if(lcmethod eq "GETINACTIVECAPTIONTEXT")
{
this.retVal = swC.getSysColor(swC.COLOR_INACTIVECAPTIONTEXT);
}
else if(lcmethod eq "GETINFOBK")
{
this.retVal = swC.getSysColor(swC.COLOR_INFOBK);
}
else if(lcmethod eq "GETINFOTEXT")
{
this.retVal = swC.getSysColor(swC.COLOR_INFOTEXT);
}
else if(lcmethod eq "GETMENU")
{
this.retVal = swC.getSysColor(swC.COLOR_MENU);
}
else if(lcmethod eq "GETMENUTEXT")
{
this.retVal = swC.getSysColor(swC.COLOR_MENUTEXT);
}
else if(lcmethod eq "GETSCROLLBAR")
{
this.retVal = swC.getSysColor(swC.COLOR_SCROLLBAR);
}
else if(lcmethod eq "GETWINDOW")
{
this.retVal = swC.getSysColor(swC.COLOR_WINDOW);
}
else if(lcmethod eq "GETWINDOWFRAME")
{
this.retVal = swC.getSysColor(swC.COLOR_WINDOWFRAME);
}
else if(lcmethod eq "GETWINDOWTEXT")
{
this.retVal = swC.getSysColor(swC.COLOR_WINDOWTEXT);
}
else if(lcmethod eq "GET3DDKSHADOW")
{
this.retVal = swC.getSysColor(swC.COLOR_3DDKSHADOW);
}
else if(lcmethod eq "GET3DFACE")
{
this.retVal = swC.getSysColor(swC.COLOR_3DFACE);
}
else if(lcmethod eq "GET3DHIGHLIGHT")
{
this.retVal = swC.getSysColor(swC.COLOR_3DHIGHLIGHT);
}
else if(lcmethod eq "GET3DHILIGHT")
{
this.retVal = swC.getSysColor(swC.COLOR_3DHILIGHT);
}
else if(lcmethod eq "GET3DLIGHT")
{
this.retVal = swC.getSysColor(swC.COLOR_3DLIGHT);
}
else if(lcmethod eq "GET3DSHADOW")
{
this.retVal = swC.getSysColor(swC.COLOR_3DSHADOW);
}
if(this.retVal != undefined)
{
return function()
{
return this.retVal;
};
}
return undefined;
};
ScreenweaverColors.prototype.getSysColor = function(index)
{
return swSystem.data.Colors[index];
};